package com.goldmantis.alitrip.common.shiro;

import com.goldmantis.alitrip.pojo.UvSysUser;
import org.apache.shiro.authc.AuthenticationToken;

public class JWTToken implements AuthenticationToken {

    public UvSysUser uvSysUser;

    public UvSysUser getUvSysUser() {
        return uvSysUser;
    }

    public void setUvSysUser(UvSysUser uvSysUser) {
        this.uvSysUser = uvSysUser;
    }

    private String principal;

    private String password;

    public JWTToken( String principal, String password,UvSysUser uvSysUser) {
        this.uvSysUser = uvSysUser;
        this.principal = principal;
        this.password = password;
    }

    @Override
    public Object getPrincipal() {
        return this.principal;
    }

    @Override
    public Object getCredentials() {
        return this.password;
    }
}
